package demo.sys.entity;

import java.util.List;

import demo.common.persistence.BaseEntity;

public class Dept extends BaseEntity<Dept> {

	private static final long serialVersionUID = 1L;

	public static final Integer TYPE_COMPANY = 1;
	public static final Integer TYPE_DEPARTMENT = 2;
	public static final Integer TYPE_GROUP = 3;

	/**
	 * 部门编码
	 */
	private String code;

	/**
	 * 部门名称
	 */
	private String name;

	/**
	 * 部门等级
	 */
	private Integer grade;

	/**
	 * 部门排序
	 */
	private Integer sort;

	/**
	 * 上级部门
	 */
	private Dept parent;

	/**
	 * 子部门
	 */
	private List<Dept> children;

	/**
	 * 部门类型
	 */
	private Integer type;

	/**
	 * 部门电话
	 */
	private String phone;

	/**
	 * 部门传真
	 */
	private String fax;

	/**
	 * 部门电子邮箱
	 */
	private String email;

	public Dept() {
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getGrade() {
		return grade;
	}

	public void setGrade(Integer grade) {
		this.grade = grade;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Dept getParent() {
		return parent;
	}

	public void setParent(Dept parent) {
		this.parent = parent;
	}

	public List<Dept> getChildren() {
		return children;
	}

	public void setChildren(List<Dept> children) {
		this.children = children;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

}
